Skip to content

Commit 0bfbb21

Browse files
committed
Execute code to ensure all tests pass in 1-implement-and-rewrite-test/implement/2-is-proper-fraction.js
1 parent d9144d9 commit 0bfbb21

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
function isProperFraction(numerator, denominator) {
1414
// TODO: Implement this function
15+
if (denominator === 0) return false;
16+
return Math.abs(numerator) < Math.abs(denominator);
1517
}
1618

1719
// The line below allows us to load the isProperFraction function into tests in other files.

0 commit comments

Comments
 (0)