Skip to content

Commit 7049b83

Browse files
Fix isProperFraction function to correctly handle equal absolute values of numerator and denominator
1 parent 79fd501 commit 7049b83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function isProperFraction(numerator, denominator) {
1414
}
1515
if (
1616
Math.abs(numerator) > Math.abs(denominator) ||
17-
numerator === denominator
17+
Math.abs(numerator) === Math.abs(denominator)
1818
) {
1919
return false;
2020
}

0 commit comments

Comments
 (0)