Skip to content

Commit a62c492

Browse files
committed
fix(tests): updated Jest cases to accept negative numerators and denominators
1 parent e739388 commit a62c492

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sprint-3/1-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
@@ -35,13 +35,13 @@ test(`should return false when numerator is larger than denominator`, () => {
3535
});
3636

3737
// Special case: negative denominator
38-
test(`should return false when denominator is negative`, () => {
39-
expect(isProperFraction(2, -6)).toEqual(false);
38+
test(`should return true when denominator is negative`, () => {
39+
expect(isProperFraction(2, -6)).toEqual(true);
4040
});
4141

4242
// Special case: negative numerator
43-
test(`should return false when numerator is negative`, () => {
44-
expect(isProperFraction(-1, 4)).toEqual(false);
43+
test(`should return true when numerator is negative`, () => {
44+
expect(isProperFraction(-1, 4)).toEqual(true);
4545
});
4646

4747
// Special case: small positive proper fraction

0 commit comments

Comments
 (0)