Skip to content

Commit bfe4374

Browse files
committed
Updated the comments.
1 parent 68ce473 commit bfe4374

1 file changed

Lines changed: 8 additions & 14 deletions

File tree

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

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,37 @@ const isProperFraction = require("../implement/2-is-proper-fraction");
44

55
// TODO: Write tests in Jest syntax to cover all combinations of positives, negatives, zeros, and other categories.
66

7-
// Special case: denominator is zero
7+
// Special case: denominator is zero.
88
test(`should return false when denominator is zero`, () => {
99
expect(isProperFraction(1, 0)).toEqual(false);
1010
});
1111

12-
13-
// Special case: numerator is zero
12+
// Special case: numerator is zero.
1413
test(`should return false when numerator is zero`, () => {
1514
expect(isProperFraction(0, 1)).toEqual(false);
1615
});
1716

18-
19-
// Special case: numerator is equal to denominators is a proper fraction
17+
// Special case: numerator is equal to denominators is not a proper fraction.
2018
test(`should return false when numerator is equal to denominator`, () => {
2119
expect(isProperFraction(2, 2)).toEqual(false);
2220
});
2321

24-
25-
// Special case: numerator is negative is a proper fraction
22+
// Special case: numerator is negative is not a proper fraction.
2623
test(`should return false when numerator is negative value`, () => {
2724
expect(isProperFraction(-1, 2)).toEqual(false);
2825
});
2926

30-
31-
// Special case: denominator is negative is a proper fraction
27+
// Special case: denominator is negative is not a proper fraction.
3228
test(`should return false denominator is negative value `, () => {
3329
expect(isProperFraction(1, -2)).toEqual(false);
3430
});
3531

36-
37-
// Special case: numerator and denominator are both negative values is a proper fraction//
38-
test(`should return true when numerator ans denominator are both negative values `, () => {
32+
// Special case: numerator and denominator are both negative values is a proper fraction.
33+
test(`should return true when numerator ans denominator are both negative values `, () => {
3934
expect(isProperFraction(-5, -6)).toEqual(true);
4035
});
4136

42-
43-
// Special case: negative numerator with smaller value then negative dominator is a proper fraction
37+
// Special case: negative numerator with smaller value then negative dominator is not a proper fraction
4438
test(`should return false when negative numerator is smaller than negative denominator `, () => {
4539
expect(isProperFraction(-6, -5)).toEqual(false);
4640
});

0 commit comments

Comments
 (0)