Skip to content

Commit 05f0fb6

Browse files
author
kohanman
committed
Sprint 3 | Jest Test Coursework 1.2
1 parent 1c30f4c commit 05f0fb6

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@ test("should return true for a proper fraction", () => {
66
expect(isProperFraction(2, 3)).toEqual(true);
77
});
88

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

11-
// Case 3: Identify Negative Fractions:
13+
test("should return true for an negative fraction", () => {
14+
expect(isProperFraction(-4, 7)).toEqual(true);
15+
});
1216

13-
// Case 4: Identify Equal Numerator and Denominator:
17+
test("should return false when the numerator equals the denominator", () => {
18+
expect(isProperFraction(3, 3)).toEqual(false);
19+
});

0 commit comments

Comments
 (0)