More example
This commit is contained in:
parent
2161437e1b
commit
dd493e1481
|
@ -0,0 +1,22 @@
|
|||
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)
|
Loading…
Reference in New Issue