hnc-artur/HNS/main.py

23 lines
434 B
Python
Raw Normal View History

2023-07-18 20:00:14 +02:00
def my_sum(a, b):
return a + b
test_cases = [
("Sobaka", 3, my_sum(1, 2)),
("Koshka", 5, my_sum(2, 3)),
("Ezhik", 3, my_sum(2, 1))
]
def print_zhivotny(mnogo_zhivotny):
for zhivotny in mnogo_zhivotny:
test_name = zhivotny[0]
test_actual = zhivotny[1]
test_expected = zhivotny[2]
print(test_name, test_actual, test_expected)
print("-" * 20)
print_zhivotny(test_cases)