Skip to content

Commit c099074

Browse files
committed
added tests for negative numerator/denominator cases
1 parent 9a3c314 commit c099074

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
@@ -20,12 +20,12 @@ test(`should return false when both numerator and denominator are zero`, () => {
2020
});
2121

2222
// case: both values are positive and the value of the numerater is less than the value of the denominater (proper fraction)
23-
test(`should return true for positive proper fraction`, () => {
23+
test(`should return true for proper fraction`, () => {
2424
expect(isProperFraction(1, 2)).toEqual(true);
2525
});
2626

2727
// case: both values are positive and the value of the denominater is less than the value of the numerater (improper fraction)
28-
test(`should return false for positive improper fraction`, () => {
28+
test(`should return false for improper fraction`, () => {
2929
expect(isProperFraction(2, 1)).toEqual(false);
3030
});
3131

0 commit comments

Comments
 (0)