Skip to content

Added more unit tests #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file added __pycache__/calculator.cpython-311.pyc
Binary file not shown.
7 changes: 5 additions & 2 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

# import pytest

from calculator import add
from calculator import add, multiply, subtract

def test_add():
assert add(2, 2) == 4

def test_subtract():
assert subtract(2, 2) == 0
def test_multiply():
assert multiply(2, 3) == 6