Skip to content

Commit f0b9120

Browse files
committed
Add Jest tests for isProperFraction covering all combinations
1 parent 8a0a7c3 commit f0b9120

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
@@ -17,10 +17,10 @@ test("should return true when absolute numerator is less than absolute denominat
1717
test("should return false when numerator equals denominator", () => {
1818
expect(isProperFraction(3, 3)).toEqual(false);
1919
});
20-
test("should return true when numerator < |denominator| and denominator is negative", () => {
20+
test("should return true when numerator < denominator and denominator is negative", () => {
2121
expect(isProperFraction(4, -7)).toEqual(true);
2222
});
23-
test("should return true when numerator and denominator are both negative and |numerator| < |denominator|", () => {
23+
test("should return true when numerator and denominator are both negative and numerator < denominator", () => {
2424
expect(isProperFraction(-4, -7)).toEqual(true);
2525
});
2626
test("should return true when numerator is zero and denominator is negative", () => {

0 commit comments

Comments
 (0)