Spaces:
Running
on
Zero
Running
on
Zero
from unittest import TestCase | |
from src.math_operations import add, subtract | |
class TestMathOperations(TestCase): | |
"""Test math operations""" | |
def test_add(self): | |
"""Test addition""" | |
self.assertEqual(add(2, 3), 5) | |
def test_subtract(self): | |
"""Test subtraction""" | |
self.assertEqual(subtract(5, 3), 2) |