Skip to content

Commit 61867b6

Browse files
authored
Added proper fraction test
1 parent f33a9a9 commit 61867b6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,18 @@ function assertEquals(actualOutput, targetOutput) {
3737
assertEquals(isProperFraction(1, 2), true);
3838
//Test
3939
// Proper fraction
40-
assertEqual(isproperFraction(3,5), true);
40+
assertEqual(isProperFraction(3,5), true);
4141
assertEual(isProperFraction(4,8), true);
42-
assertEqual(isproperfraction (-1,-2) false);
42+
assertEqual(isproperFraction(-1,2), true);
4343

4444

4545
//Not
46-
assertEqual(isproperFraction(9/7),false);
47-
assertEqual(isproperFracton(13/11),false);
46+
assertEqual(isproperFraction(9/7), false);
47+
assertEqual(isproperFracton(13/11), false);
48+
assertEqual(isProperFraction(-1,-2), false);
49+
assertEqual(ispProperFraction(1,-2), false)
4850

4951
//Edge case
50-
assertEqual(isperoperFractio(0/5),true);
52+
assertEqual(isperoperFractio(0/5), true);
5153

5254

0 commit comments

Comments
 (0)