Skip to content

Commit 11a8d80

Browse files
committed
Passing test_multiplication
1 parent c2c8f9e commit 11a8d80

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Calculator/lib/calculator.rb

+4
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@ def divide num_uno, num_dos
1212
num_uno / num_dos
1313
end
1414

15+
def multiply num_uno, num_dos
16+
num_uno * num_dos
17+
end
18+
1519
end

Calculator/test/calculator_test.rb

+4
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,9 @@ def test_subtraction
2020
def test_division
2121
assert_equal 5, @cal.divide(20,4)
2222
end
23+
24+
def test_multiplication
25+
assert_equal 25, @cal.multiply(5,5)
26+
end
2327

2428
end

0 commit comments

Comments
 (0)