Skip to content

Commit 3e16cd7

Browse files
committed
Function Numerator & Denominator Tests
1 parent 03256d2 commit 3e16cd7

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,28 @@ test("should return true for a proper fraction", () => {
88

99
// Case 2: Identify Improper Fractions:
1010

11+
test("it is a Improper Fraction",() =>{
12+
expect(isProperFraction(3, 2)).toEqual(false);
13+
});
14+
1115
// Case 3: Identify Negative Fractions:
16+
test("it is a Negative Fraction",() =>{
17+
expect(isProperFraction(-2, 6)).toEqual(true);
18+
});
1219

1320
// Case 4: Identify Equal Numerator and Denominator:
21+
22+
test("It is a equal numerator and denominador", () =>{
23+
expect(isProperFraction( 2, 2)).toEqual(false);
24+
});
25+
26+
27+
28+
// function isProperFraction(numerator, denominator) {
29+
// if (numerator < denominator) {
30+
// return true ;
31+
// }
32+
// else {
33+
// return false;
34+
// }
35+
// }

0 commit comments

Comments
 (0)