pythonTest/python/01_python_tooling/test_sum_calculator.py

16 lines
350 B
Python

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