Skip to content

Commit 137fd7c

Browse files
committed
added a few tests for negative improper fractions
1 parent bcbd867 commit 137fd7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ test("should return true for a proper fraction", () => {
1010
test("should return false for an improper fraction", () => {
1111
expect(isProperFraction(7, 4)).toEqual(false);
1212
expect(isProperFraction(35, 8)).toEqual(false);
13+
expect(isProperFraction(-5, 3)).toEqual(false);
14+
expect(isProperFraction(8, -7)).toEqual(false);
1315
});
1416

1517
// Case 3: Identify Negative Fractions:

0 commit comments

Comments
 (0)