Unit Test added
parent
a7ee33bdb0
commit
da48e90bec
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -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
|
||||
|
|
@ -1,2 +1,3 @@
|
|||
numpy
|
||||
flask
|
||||
flask
|
||||
pytest
|
||||
Loading…
Reference in New Issue