Skip to content

Commit dae666b

Browse files
author
Arthur
committed
proper-fraction
1 parent eb0fff6 commit dae666b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ function isProperFraction(numerator, denominator) {
1414

1515
return numerator< denominator ;
1616

17-
18-
19-
2017
}
2118

2219
// The line below allows us to load the isProperFraction function into tests in other files.
@@ -36,4 +33,8 @@ function assertEquals(actualOutput, targetOutput) {
3633

3734
// Example: 1/2 is a proper fraction
3835
assertEquals(isProperFraction(1, 2), true);
39-
//for committing//
36+
assertEquals(isProperFraction(2, 1), false);
37+
assertEquals(isProperFraction(2, 2), false);
38+
39+
40+
assertEquals(isProperFraction(0, 2), true);

0 commit comments

Comments
 (0)