Skip to content

Commit 147fcbb

Browse files
committed
I updated the test so that negative fractions are handled correctly
1 parent 498d7ae commit 147fcbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ test("should return false for Improper fraction", () => {
1212
});
1313

1414
// Case 3: Identify Negative Fractions:
15-
test("should return false for Negative fraction", () => {
16-
expect(isProperFraction(-4, 7)).toEqual(false);
15+
test("should return true for Negative fraction", () => {
16+
expect(isProperFraction(-4, 7)).toEqual(true);
1717
});
1818

1919
// Case 4: Identify Equal Numerator and Denominator:

0 commit comments

Comments
 (0)