Skip to content

Commit 0815a5b

Browse files
authored
Update negative numerator test to expect true
Fix test case for negative numerator in isProperFraction.
1 parent d051c1e commit 0815a5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ test(`should return false when numerator is greater than denominator`, () => {
2323
});
2424
// Negative Value
2525
test(`should return false when numerator is negative`, () => {
26-
expect(isProperFraction(-3, 8)).toEqual(false);
26+
expect(isProperFraction(-3, 8)).toEqual(true);
2727

2828
});
2929
// Very Small
@@ -33,4 +33,4 @@ test(`should return true with very small values`, () => {
3333
// very large
3434
test(`should return false with very large`, () => {
3535
expect(isProperFraction(999999, 0.0001)).toEqual(false);
36-
});
36+
});

0 commit comments

Comments
 (0)