From 363f686f99ca1386804f5eff7981a498259b7d05 Mon Sep 17 00:00:00 2001 From: kir1903 Date: Fri, 13 Mar 2026 15:40:17 +0700 Subject: [PATCH 1/2] Added tests --- test_my_test.py | 2 ++ test_palidrome.py | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 test_my_test.py create mode 100644 test_palidrome.py diff --git a/test_my_test.py b/test_my_test.py new file mode 100644 index 000000000000..a0d5705cdae5 --- /dev/null +++ b/test_my_test.py @@ -0,0 +1,2 @@ +def test_simple_math(): + assert 2 + 2 == 4 \ No newline at end of file diff --git a/test_palidrome.py b/test_palidrome.py new file mode 100644 index 000000000000..00c594048f17 --- /dev/null +++ b/test_palidrome.py @@ -0,0 +1,9 @@ +from strings.palindrome import is_palindrome + + +def test_palindrome_true(): + assert is_palindrome("level") == True + + +def test_palindrome_false(): + assert is_palindrome("hello") == False \ No newline at end of file From 903f131f0543c1d6a1fc47fa6bb4d70bfeb5114e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 13 Mar 2026 09:01:18 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- test_my_test.py | 2 +- test_palidrome.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test_my_test.py b/test_my_test.py index a0d5705cdae5..459f2cc524f8 100644 --- a/test_my_test.py +++ b/test_my_test.py @@ -1,2 +1,2 @@ def test_simple_math(): - assert 2 + 2 == 4 \ No newline at end of file + assert 2 + 2 == 4 diff --git a/test_palidrome.py b/test_palidrome.py index 00c594048f17..5d89b2971b0c 100644 --- a/test_palidrome.py +++ b/test_palidrome.py @@ -6,4 +6,4 @@ def test_palindrome_true(): def test_palindrome_false(): - assert is_palindrome("hello") == False \ No newline at end of file + assert is_palindrome("hello") == False