tgtest_test/test_functions

13 lines
383 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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