Skip to content

More unit tests. #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
12 changes: 11 additions & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,18 @@

# import pytest

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


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

def test_subtract():
assert subtract(4, 2) == 2

def test_multiply():
assert multiply(4, 4) == 16

def test_divide():
assert divide(8, 2) == 4