23 lines
434 B
Python
23 lines
434 B
Python
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)
|