Skip to content

Commit

Permalink
Lower Coverage Example
Browse files Browse the repository at this point in the history
  • Loading branch information
Qoherent committed Mar 26, 2024
1 parent a1d259c commit ed78392
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
File renamed without changes.
14 changes: 7 additions & 7 deletions tests/dummy_test/calculator_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from calculator import Calculator
from .calculator import Calculator

def test_add():
assert Calculator.add(1, 2) == 3.0
Expand All @@ -15,12 +15,12 @@ def test_subtract():
assert Calculator.subtract(2.0, 0.0) == 2.0
assert Calculator.subtract(-4, 2.0) == -6.0

def test_multiply():
assert Calculator.multiply(1, 2) == 2.0
assert Calculator.multiply(1.0, 2.0) == 2.0
assert Calculator.multiply(0, 2.0) == 0.0
assert Calculator.multiply(2.0, 0.0) == 0.0
assert Calculator.multiply(-4, 2.0) == -8.0
# def test_multiply():
# assert Calculator.multiply(1, 2) == 2.0
# assert Calculator.multiply(1.0, 2.0) == 2.0
# assert Calculator.multiply(0, 2.0) == 0.0
# assert Calculator.multiply(2.0, 0.0) == 0.0
# assert Calculator.multiply(-4, 2.0) == -8.0

# def test_divide():
# assert Calculator.divide(1, 2) == 0.5
Expand Down

0 comments on commit ed78392

Please sign in to comment.