Skip to content

Commit a3c8fc8

Browse files
authored
editing the code
1 parent b5c55bd commit a3c8fc8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const isProperFraction = require("../implement/2-is-proper-fraction");
55
test("should return true for a proper fraction", () => {
66
expect(isProperFraction(2, 3)).toEqual(true);
77

8-
98
});
109

1110
// Case 2: Identify Improper Fractions:
@@ -21,4 +20,7 @@ test("should return false for a negative fraction", () => {
2120
// Case 4: Identify Equal Numerator and Denominator:
2221
test("should return false for equal numerator and denominator", () => {
2322
expect(isProperFraction(3, 3)).toEqual(false);
23+
expect(isProperFraction(-3, 3)).toEqual(false);
24+
expect(isProperFraction(3, -3)).toEqual(false);
25+
expect(isProperFraction(-3, -3)).toEqual(false);
2426
});

0 commit comments

Comments
 (0)