Skip to content

Commit a2f7fb0

Browse files
committed
amended a test when numerator =0,test pass
1 parent 79e3535 commit a2f7fb0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎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
@@ -24,9 +24,9 @@ test(`should return false when(numerator = 0 and numerator = 0)`, () => {
2424
test(`should return true when(numerator < denominator)`, () => {
2525
expect(isProperFraction(-1, 2)).toEqual(true);
2626
});
27-
test(`should return true when numerator > denominator)`, () => {
27+
test(`should return true when the input is -ve |numerator|<|denominator|`, () => {
2828
expect(isProperFraction(-1, -2)).toEqual(true);
2929
});
30-
test(`should return false when(numerator < denominator)`, () => {
30+
test(`should return false when the input is -ve |numerator|>|denominator|`, () => {
3131
expect(isProperFraction(-2, -1)).toEqual(false);
3232
});

0 commit comments

Comments
 (0)