Skip to content

Commit a90ef9f

Browse files
committed
Update proper fraction Jest tests
1 parent 2007dc3 commit a90ef9f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,10 @@ test(`should return false when numerator is negative`, () => {
2525
});
2626
test(`should return false when denominator is negative`, () => {
2727
expect(isProperFraction(1, -1)).toEqual(false);
28+
});
29+
test(`should return true when numerator is negative but not the same number as denominator`, () => {
30+
expect(isProperFraction(-1, 2)).toEqual(true);
31+
});
32+
test(`should return true when denominator is negative but not the same number as denominator`, () => {
33+
expect(isProperFraction(1, -2)).toEqual(true);
2834
});

0 commit comments

Comments
 (0)