From e6dfc5d181c6792a58bb003c56d67f35d7d60ca5 Mon Sep 17 00:00:00 2001 From: Inex Code Date: Mon, 10 Jan 2022 20:02:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB(=D0=B0)=20?= =?UTF-8?q?'test=5Ffunctions'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_functions | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test_functions diff --git a/test_functions b/test_functions new file mode 100644 index 0000000..4f6fbfb --- /dev/null +++ b/test_functions @@ -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