Skip to content

Commit ec69eea

Browse files
committed
adding abs(...) notation to indicate the comparison is made on the absolute values of the numerator and the denominator.
1 parent 2395603 commit ec69eea

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
@@ -15,12 +15,12 @@ test("should return true when numerator is 0", () => {
1515
expect(isProperFraction(0, 3)).toEqual(true);
1616
expect(isProperFraction(0, -2)).toEqual(true);
1717
});
18-
test("should return true when numerator > denominator", () => {
18+
test("should return true when abs(numerator) > abs(denominator)", () => {
1919
expect(isProperFraction(-12, -19)).toEqual(true);
2020
expect(isProperFraction(0, 6)).toEqual(true);
2121
expect(isProperFraction(17, -71)).toEqual(true);
2222
});
23-
test("should return false when numerator < denominator", () => {
23+
test("should return false when abs(numerator) < abs(denominator)", () => {
2424
expect(isProperFraction(-180, -109)).toEqual(false);
2525
expect(isProperFraction(27, 5)).toEqual(false);
2626
expect(isProperFraction(-29, 17)).toEqual(false);

0 commit comments

Comments
 (0)