Compare commits

...
4 Commits
Author SHA1 Message Date
chris 6aa5a2b6b3 Add tests and code for divide function 2026-06-02 16:18:32 -04:00
chris 4ba1e2cb90 Add multiply function 2026-06-02 15:00:56 -04:00
chris 061a2f4ab4 Add test for multiplication 2026-06-02 14:59:42 -04:00
chris a23ba76ac9 Fix circleci directory 2026-06-02 14:48:30 -04:00
3 changed files with 14 additions and 0 deletions

No files matched your search

File renamed without changes.
+8
View File
@@ -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
+6
View File
@@ -12,3 +12,9 @@ class TestCalculator:
def test_subtract(self): def test_subtract(self):
assert 2 == calculator.subtract(4, 2) 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)