Skip to content

Commit 4c7828e

Browse files
committed
complete 2-is-proper-fraction with jest
1 parent 4bdc0e1 commit 4c7828e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,18 @@ test("should return true for a proper fraction", () => {
77
});
88

99
// Case 2: Identify Improper Fractions:
10+
test("should return false for an improper fraction", () => {
11+
expect(isProperFraction(5, 2)).toEqual(false);
12+
});
1013

1114
// Case 3: Identify Negative Fractions:
15+
test("should return true for a negative fraction", () => {
16+
expect(isProperFraction(-4, 7)).toEqual(true);
17+
});
1218

1319
// Case 4: Identify Equal Numerator and Denominator:
20+
// const equalFraction = isProperFraction(3, 3);
21+
// assertEquals(equalFraction, false);
22+
test("should return false when numerator and denominator are equal", () => {
23+
expect(isProperFraction(3, 3)).toEqual(false);
24+
});

0 commit comments

Comments
 (0)