Skip to content

Commit b3bbf8a

Browse files
committed
added another test case (0,0)
1 parent 89c02e7 commit b3bbf8a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,10 @@ test("should return false when numerator is greater than or equal to denominator
3232
// Category 4: Denominator is zero
3333
test("should return false when denominator is zero", () => {
3434
expect(isProperFraction(1, 0)).toBe(false);
35+
});
36+
37+
// Category 5: Both numerator and denominator are zero
38+
39+
test("should return false when numerator is zero and denominator is zero", () => {
40+
expect(isProperFraction(0, 0)).toBe(false);
3541
});

0 commit comments

Comments
 (0)