lr5

parent 274e30df
...@@ -50,10 +50,10 @@ def calculate(*args, **kwargs): ...@@ -50,10 +50,10 @@ def calculate(*args, **kwargs):
return round(result_division, precision) return round(result_division, precision)
# print(calculate(*list(range(1, 10)), "+", **PARAMS)) # 1 + 2 + 3 + .. + 9 print(calculate(*list(range(1, 10)), "+", **PARAMS), '\n') # 1 + 2 + 3 + .. + 9
# print(calculate(*list(range(1, 10)), "-", **PARAMS)) print(calculate(*list(range(1, 10)), "-", **PARAMS), '\n')
print(calculate(*list(range(1, 5)), "/", **PARAMS)) print(calculate(*list(range(1, 5)), "/", **PARAMS), '\n')
# print(calculate(*[1.0001, 2.2345], "*", **PARAMS)) # 2.23472345 print(calculate(*[1.0001, 2.2345], "*", **PARAMS), '\n') # 2.23472345
def test_packed_calc_sum(): def test_packed_calc_sum():
...@@ -63,5 +63,3 @@ def test_packed_calc_sum(): ...@@ -63,5 +63,3 @@ def test_packed_calc_sum():
assert type(calculate(*inp1, action, ** assert type(calculate(*inp1, action, **
PARAMS)) is type(45.0), 'Type of sum is incorrect' PARAMS)) is type(45.0), 'Type of sum is incorrect'
# test_packed_calc_sum()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment