Add unit tests for calculator
This commit is contained in:
1 parent
05bfcd65df
commit
2e854cbeb6
2227 files changed
+408232
-1
No files matched your search
@@ -0,0 +1,14 @@
|
||||
"""
|
||||
Unit tests for the calculator library
|
||||
"""
|
||||
|
||||
import calculator
|
||||
|
||||
|
||||
class TestCalculator:
|
||||
|
||||
def test_addition(self):
|
||||
assert 4 == calculator.add(2, 2)
|
||||
|
||||
def test_subtract(self):
|
||||
assert 2 == calculator.subtract(4, 2)
|
||||
Reference in new issue
Block a user