Skip to content

More unit tests. #7

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
9 changes: 7 additions & 2 deletions test.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# test_with_pytest.py

# import pytest
import pytest

from calculator import add
from calculator import *

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

def test_multiply():
assert multiply(6, 8) == 48

def test_divide():
assert divide(60, 5) == 12