Skip to content

Commit 1a20c17

Browse files
committed
fixed bug with having two tests doing - numerators.
1 parent 0569019 commit 1a20c17

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎implement-and-rewrite-tests/rewrite-tests-with-jest/2-is-proper-fraction.test.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ test(`should return true when: -Numerator < Denominator`, () => {
5454
expect(isProperFraction(-10, 20)).toEqual(true);
5555
});
5656

57-
// Special case: Improper fraction with negative number: -Numerator > Denominator
57+
// Special case: Improper fraction with negative number: Numerator > -Denominator
5858
test(`should return false when: -Numerator > Denominator`, () => {
59-
expect(isProperFraction(-2, 1)).toEqual(false);
60-
expect(isProperFraction(-5, 4)).toEqual(false);
61-
expect(isProperFraction(-20, 10)).toEqual(false);
59+
expect(isProperFraction(2, -1)).toEqual(false);
60+
expect(isProperFraction(5, -4)).toEqual(false);
61+
expect(isProperFraction(20, -0)).toEqual(false);
6262
});
6363

6464
// Special case: Improper fraction with negative Numerator and 0: -Numerator > 0

0 commit comments

Comments
 (0)