Skip to content

Commit

Permalink
Merge pull request #11 from DanteOnline/test_multiplication
Browse files Browse the repository at this point in the history
add test
  • Loading branch information
DanteOnline authored Mar 21, 2024
2 parents ea97018 + 2c7bac5 commit b3a679e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion calculator/multiplication.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

def multiplication(a, b):
return a * b
return a * b
Empty file added test_calculator/__init__.py
Empty file.
5 changes: 5 additions & 0 deletions test_calculator/test_multiplication.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from calculator.multiplication import multiplication


def test_multiplication():
assert multiplication(3, 4) == 12

0 comments on commit b3a679e

Please sign in to comment.