Blog-Writing-Agent / src /tests /test_operation.py
VashuTheGreat2's picture
Upload folder using huggingface_hub
63de3ab verified
raw
history blame contribute delete
305 Bytes
import os
import sys
PROJECT_ROOT = os.getcwd()
if PROJECT_ROOT not in sys.path:
sys.path.append(PROJECT_ROOT)
from src.scripts.mat_operation import add, sub
def test_add():
assert add(2, 3) == 5
assert add(-1, 1) == 0
def test_sub():
assert sub(5, 3) == 2
assert sub(4, 3) == 1