Unit Test added

main
Matias Mas Viehl 2025-12-15 11:01:31 +01:00
parent a7ee33bdb0
commit da48e90bec
5 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,16 @@
from sum_calculator import calculate_cumulative_sum
def test_sum_for_zero():
"""Randfall, dass die Obergrenze 0 ist"""
limit = 0
result = calculate_cumulative_sum(limit)
assert result == 0
def test_sum_for_five():
"""Fall, dass Limit 5 ist"""
limit = 5
result = calculate_cumulative_sum(limit)
assert result == 15

View File

@ -1,2 +1,3 @@
numpy
flask
flask
pytest