Skip to content

Commit ee87233

Browse files
committed
add test for negative improper fraction
1 parent 01d5575 commit ee87233

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ test('should return false when the fraction is improper', () => {
2525
test('should return true when numerator is zero', () => {
2626
expect(isProperFraction(0, 5)).toEqual(true);
2727
});
28+
// Case: negative improper fraction
29+
test('should return false when the fraction is a negative improper fraction', () => {
30+
expect(isProperFraction(-7, 3)).toEqual(false);
31+
});

0 commit comments

Comments
 (0)