Skip to content

Commit 1f3bc85

Browse files
authored
Update test.js
1 parent 48b0503 commit 1f3bc85

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

exercises/141-multiply/test.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,18 @@ test('Given 2 whole numbers, multiply and return the total', () => {
1717
expect(multiply(4, 7)).toBe(28);
1818
});
1919

20-
test('Given 2 whole numbers, multiply and return the total. Testing with negative value', () => {
20+
test('Given 2 whole numbers, multiply and return the total. Testing with different values', () => {
2121
expect(multiply(5, -5)).toBe(-25);
2222
});
2323

24+
test('Given 2 whole numbers, multiply and return the total. Testing with different values', () => {
25+
expect(multiply(-5, -3)).toBe(15);
26+
});
27+
28+
test('Given 2 whole numbers, multiply and return the total. Testing with different values', () => {
29+
expect(multiply(0, -5)).toBe(0);
30+
});
31+
2432
test('Must not use the * operator', () => {
2533
let multiplyOperator = '*';
2634
expect(multiplyOperator).not.toBe(multiply);

0 commit comments

Comments
 (0)