Skip to content

Commit d9144d9

Browse files
committed
write tests for 1-implement-and-rewrite-tests/implement/2-is-proper-fraction.js
1 parent f83d840 commit d9144d9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,8 @@ function assertEquals(actualOutput, targetOutput) {
3131

3232
// Example: 1/2 is a proper fraction
3333
assertEquals(isProperFraction(1, 2), true);
34+
assertEquals(isProperFraction(3, 1), false);
35+
assertEquals(isProperFraction(2, 2), false);
36+
assertEquals(isProperFraction(5, 0), false);
37+
assertEquals(isProperFraction(-2, 4), true);
38+
assertEquals(isProperFraction(4, -2), false);

0 commit comments

Comments
 (0)