Compare commits
4
Commits
4aba0311e7
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6aa5a2b6b3 | ||
|
|
4ba1e2cb90 | ||
|
|
061a2f4ab4 | ||
|
|
a23ba76ac9 |
No files matched your search
File renamed without changes.
@@ -9,3 +9,11 @@ def add(first_term, second_term):
|
||||
|
||||
def subtract(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
|
||||
@@ -12,3 +12,9 @@ class TestCalculator:
|
||||
|
||||
def test_subtract(self):
|
||||
assert 2 == calculator.subtract(4, 2)
|
||||
|
||||
def test_multiplication(self):
|
||||
assert 100 == calculator.multiply(10, 10)
|
||||
|
||||
def test_divide(self):
|
||||
assert 20 == calculator.divide(100, 5)
|
||||
Reference in new issue
Block a user