Files
Python_CI/CalculatorLibrary/test_calculator.py
T
2026-06-02 14:59:42 -04:00

18 lines
322 B
Python

"""
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)
def test_multiplication(self):
assert 100 == calculator.multiply(10, 10)