Skip to content

Commit c2ce7b8

Browse files
Effect changes
1 parent 2a0af31 commit c2ce7b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ test(`should return false when denominator is zero`, () => {
1111

1212

1313
// Case 2: positive proper fractions
14-
test(`should return true for positive proper fractions (numerator < denominator)`, () => {
14+
test(`should return true when |numerator| < |denominator|`, () => {
1515
expect(isProperFraction(1, 2)).toEqual(true);
1616
expect(isProperFraction(2, 4)).toEqual(true);
1717
})
1818

1919
// Case 3: negative proper fractions
20-
test(`should return true for negative proper fractions (numerator < denominator)`, () => {
20+
test(`should return true when |numerator| < |denominator|`, () => {
2121
expect(isProperFraction(-1, -2)).toEqual(true);
2222
expect(isProperFraction(-2, -4)).toEqual(true);
2323
})
2424

2525
// Case 4: improper fractions (numerator >= denominator)
26-
test(`should return false for improper fractions`, () => {
26+
test(`should return false when |numerator| >= |denominator|`, () => {
2727
expect(isProperFraction(4, 2)).toEqual(false);
2828
expect(isProperFraction(4, 4)).toEqual(false);
2929
expect(isProperFraction(-6, 4)).toEqual(false);

0 commit comments

Comments
 (0)