Compare commits
2
Commits
061a2f4ab4
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6aa5a2b6b3 | ||
|
|
4ba1e2cb90 |
No files matched your search
@@ -9,3 +9,11 @@ def add(first_term, second_term):
|
|||||||
|
|
||||||
def subtract(first_term, second_term):
|
def subtract(first_term, second_term):
|
||||||
return first_term - second_term
|
return first_term - second_term
|
||||||
|
|
||||||
|
|
||||||
|
def multiply(first_term, second_term):
|
||||||
|
return first_term * second_term
|
||||||
|
|
||||||
|
|
||||||
|
def divide(first_term, second_term):
|
||||||
|
return first_term / second_term
|
||||||
@@ -15,3 +15,6 @@ class TestCalculator:
|
|||||||
|
|
||||||
def test_multiplication(self):
|
def test_multiplication(self):
|
||||||
assert 100 == calculator.multiply(10, 10)
|
assert 100 == calculator.multiply(10, 10)
|
||||||
|
|
||||||
|
def test_divide(self):
|
||||||
|
assert 20 == calculator.divide(100, 5)
|
||||||
Reference in new issue
Block a user