Skip to content

Commit 74b4cc1

Browse files
committed
Modified
1 parent 2934b0e commit 74b4cc1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

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

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

1414
// Case 3: Identify Negative Fractions:
15-
test("should return true for a negative fraction", () => {
15+
test("should return true for a proper fraction with negative numerator", () => {
1616
expect(isProperFraction(-2, 3)).toEqual(true);
1717
});
1818

@@ -21,4 +21,12 @@ test("should return false for equal numerator and denominator", () => {
2121
expect(isProperFraction(3, 3)).toEqual(false);
2222
});
2323

24-
// Sprint-3 ewrite-tests-with-jest/2-is-proper-fraction.test.js. rewrote tests in jest
24+
test("should return false for a negative improper fraction", () => {
25+
expect(isProperFraction(-4, 3)).toEqual(false);
26+
});
27+
28+
29+
// Sprint-3 ewrite-tests-with-jest/2-is-proper-fraction.test.js. rewrote tests in jest
30+
// Changed the misleading comment "should return true for a negative fraction"
31+
// to "should return true for a proper fraction with negative numerator"
32+
// Modified

0 commit comments

Comments
 (0)