Skip to content

Commit 0c95abd

Browse files
committed
Add negative testcase for 2-is-proper-fraction.test.js
1 parent d956277 commit 0c95abd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ describe("isProperFraction", () => {
3131
expect(isProperFraction(7, -4)).toEqual(false);
3232
});
3333

34+
test("returns true when numerator and denomenator are negative", () => {
35+
expect(isProperFraction(-7, -4)).toEqual(false);
36+
});
37+
3438
test("returns false when numerator equals denominator", () => {
3539
expect(isProperFraction(4, 4)).toEqual(false);
3640
});

0 commit comments

Comments
 (0)