Add unit tests for calculator

This commit is contained in:
chris committed 2026-06-02 14:41:58 -04:00
1 parent 05bfcd65df
commit 2e854cbeb6
2227 files changed
+408232 -1

No files matched your search

+14
View File
@@ -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)