Skip to content
Snippets Groups Projects
Commit 38cf2e23 authored by mvrp21's avatar mvrp21
Browse files

deu


Signed-off-by: default avatarMarcus V. <mvrp21@inf.ufpr.br>
parent 302d598a
No related branches found
No related tags found
No related merge requests found
Pipeline #40598 passed
...@@ -14,7 +14,7 @@ function mulNumbers(a, b) { ...@@ -14,7 +14,7 @@ function mulNumbers(a, b) {
} }
function divNumbers(a, b) { function divNumbers(a, b) {
return b / a; return a / b;
} }
module.exports = { module.exports = {
......
...@@ -21,9 +21,9 @@ test('muls -1 * 2 to equal -2', () => { ...@@ -21,9 +21,9 @@ test('muls -1 * 2 to equal -2', () => {
expect(mulNumbers(-1, 2)).toBe(-2); expect(mulNumbers(-1, 2)).toBe(-2);
}); });
test('divs 1 / 2 to equal 2', () => { test('divs 1 / 2 to equal 0.5', () => {
expect(divNumbers(1, 2)).toBe(2); expect(divNumbers(1, 2)).toBe(0.5);
}); });
test('divs -1 / 2 to equal -2', () => { test('divs -1 / 2 to equal -0.5', () => {
expect(divNumbers(-1, 2)).toBe(-2); expect(divNumbers(-1, 2)).toBe(-0.5);
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment