2024-heraklion-testing-debu.../hands_on_solutions/first/test_first.py
2024-08-26 13:54:13 +02:00

29 lines
410 B
Python

from first import times_3
def test_times_3_integer():
value = 7
expected = 21
result = times_3(value)
assert result == expected
def test_times_3_string():
value = 'wow'
expected = 'wowwowwow'
result = times_3(value)
assert result == expected
def test_times_3_list():
value = [1]
expected = [1, 1, 1]
result = times_3(value)
assert result == expected