Skip to content

Commit ff05213

Browse files
committed
implement function for isProperFraction
1 parent e910843 commit ff05213

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ exports.assertEquals = assertEquals;
3838
// What combinations of numerators and denominators should you test?
3939

4040
// Example: 1/2 is a proper fraction
41-
assertEquals(isProperFraction(1, 2), true);
42-
assertEquals(isProperFraction(2, 1), false);
41+
assertEquals(isProperFraction(1, 2), true); // 2 is greater than 1, so this should return true.
42+
assertEquals(isProperFraction(2, 1), false); // 1 is not greater than 2, so this should return false.
4343
assertEquals(isProperFraction(0, 1), true);
4444
assertEquals(isProperFraction(1, 0), false);
4545
assertEquals(isProperFraction(-1, 2), true);

0 commit comments

Comments
 (0)