Создал(а) 'test_functions'

This commit is contained in:
Inex Code 2022-01-10 20:02:18 +03:00
parent 8c72a55a0e
commit e6dfc5d181

12
test_functions Normal file
View file

@ -0,0 +1,12 @@
import pytest
from tested_code import fibonacci, is_palindrome
def test_fibonacci():
assert fibonacci(4) == 3
assert fibonacci(7) == 13
assert fibonacci(10) == 55
def test_is_palindrome():
assert is_palindrome("А роза упала на лапу Азора") == True
assert is_palindrome("Live not on evil") == True
assert is_palindrome("Hello") == False