Skip to content

Commit cd2a653

Browse files
committed
added test result for denominator and numerator are equal.
1 parent ddb16d2 commit cd2a653

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎implement-and-rewrite-tests/implement-tests-with-node-test/2-is-proper-fraction.test.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ test("Basic proper fraction", () => {
2121
test("Basic proper fraction", () => {
2222
assert.equal(isProperFraction(2, -5), false);
2323
});
24+
25+
test("Basic proper fraction", () => {
26+
assert.equal(isProperFraction(1, 1), false);
27+
});

‎implement-and-rewrite-tests/rewrite-tests-with-jest/2-is-proper-fraction.test.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ test(`should return false when denominator is less than numerator`, () => {
1515
expect(isProperFraction(4, 1)).toEqual(false);
1616
});
1717

18-
test(`should true when denominator and numerator are negative`, () => {
18+
test(`should return false when denominator and numerator are negative`, () => {
1919
expect(isProperFraction(-5, -2)).toEqual(false);
2020
});
21+
22+
test(`should return false when denominator and numerator are equal`, () => {
23+
expect(isProperFraction(1, 1)).toEqual(false);
24+
});

0 commit comments

Comments
 (0)