Skip to content

Commit 6f270d2

Browse files
committed
Add comments to tests
1 parent 4b20e69 commit 6f270d2

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,23 @@ function assertEquals(actualOutput, targetOutput) {
3737
// Example: 1/2 is a proper fraction
3838
assertEquals(isProperFraction(1, 2), true);
3939

40+
// Example: numerator is 0 is a proper fraction
4041
assertEquals(isProperFraction(0, 2), false);
4142

43+
// Example: numerator is equal to denominators is a proper fraction
4244
assertEquals(isProperFraction(2, 2), false);
4345

46+
// Example: denominator is 0 is a proper fraction
4447
assertEquals(isProperFraction(5, 0), false);
4548

49+
// Example: numerator is negative is a proper fraction
4650
assertEquals(isProperFraction(-1, 2), false);
4751

52+
// Example: denominator is negative is a proper fraction
4853
assertEquals(isProperFraction(4, -3), false);
4954

55+
// Example: numerator and denominator are both negative values is a proper fraction
5056
assertEquals(isProperFraction(-5, -6), true);
5157

58+
// Example: negative numerator with smaller value then negative dominator is a proper fraction
5259
assertEquals(isProperFraction(-6, -5), false);

0 commit comments

Comments
 (0)