diff --git a/pythoncalculator/__init__.py b/pythoncalculator/__init__.py index c54c73e..eaca681 100644 --- a/pythoncalculator/__init__.py +++ b/pythoncalculator/__init__.py @@ -1,2 +1,2 @@ from .add import add - +from .multiply import multiply diff --git a/pythoncalculator/multiply.py b/pythoncalculator/multiply.py new file mode 100644 index 0000000..43dfa55 --- /dev/null +++ b/pythoncalculator/multiply.py @@ -0,0 +1,2 @@ +def multiply(x, y): + return x * y \ No newline at end of file diff --git a/tests/test_multiply.py b/tests/test_multiply.py new file mode 100644 index 0000000..9a68ecc --- /dev/null +++ b/tests/test_multiply.py @@ -0,0 +1,6 @@ +from pythoncalculator import multiply + + +def test_multiply(): + assert multiply(10, 3) == 30 + \ No newline at end of file