Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/divide' into divide
Browse files Browse the repository at this point in the history
  • Loading branch information
aliyansrddn committed Nov 1, 2022
2 parents 3e4c2ff + aefdb18 commit 5f31dbf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pythoncalculator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from .add import add
from .divide import divide
from .divide import divide
from .subtract import subtract
2 changes: 2 additions & 0 deletions pythoncalculator/subtract.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def subtract(x, y):
return x - y
5 changes: 5 additions & 0 deletions tests/test_subtract.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from pythoncalculator import subtract


def test_subtract():
assert subtract(1, 3) == -2

0 comments on commit 5f31dbf

Please sign in to comment.