diff --git a/pythoncalculator/__init__.py b/pythoncalculator/__init__.py index c54c73e..51c3974 100644 --- a/pythoncalculator/__init__.py +++ b/pythoncalculator/__init__.py @@ -1,2 +1,2 @@ from .add import add - +from .divide import divide diff --git a/pythoncalculator/divide.py b/pythoncalculator/divide.py new file mode 100644 index 0000000..f548fa0 --- /dev/null +++ b/pythoncalculator/divide.py @@ -0,0 +1,2 @@ +def divide(x, z): + return x / y \ No newline at end of file diff --git a/tests/test_divide.py b/tests/test_divide.py new file mode 100644 index 0000000..a41f86e --- /dev/null +++ b/tests/test_divide.py @@ -0,0 +1,5 @@ +from pythoncalculator import divide + + +def test_divide(): + assert divide(10, 2) == 5 \ No newline at end of file