Skip to content

Commit fe8068f

Browse files
Add Both negative test
1 parent caaac8f commit fe8068f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,9 @@ test("Negative denominator", () => {
3535
// Example: negative numerator is a proper fraction?
3636
assert.equal(isProperFraction(2, -5), true);
3737
});
38+
39+
test("Both negative", () => {
40+
// Example: Both negative is a proper fraction?
41+
assert.equal(isProperFraction(-3, -5), true);
42+
assert.equal(isProperFraction(-5, -2), false);
43+
});

0 commit comments

Comments
 (0)