Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test_my_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_simple_math():
assert 2 + 2 == 4
9 changes: 9 additions & 0 deletions test_palidrome.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from strings.palindrome import is_palindrome


def test_palindrome_true():
assert is_palindrome("level") == True

Check failure on line 5 in test_palidrome.py

View workflow job for this annotation

GitHub Actions / ruff

ruff (E712)

test_palidrome.py:5:12: E712 Avoid equality comparisons to `True`; use `is_palindrome("level"):` for truth checks help: Replace with `is_palindrome("level")`

Check failure on line 5 in test_palidrome.py

View workflow job for this annotation

GitHub Actions / ruff

ruff (E712)

test_palidrome.py:5:12: E712 Avoid equality comparisons to `True`; use `is_palindrome("level"):` for truth checks help: Replace with `is_palindrome("level")`


def test_palindrome_false():
assert is_palindrome("hello") == False

Check failure on line 9 in test_palidrome.py

View workflow job for this annotation

GitHub Actions / ruff

ruff (E712)

test_palidrome.py:9:12: E712 Avoid equality comparisons to `False`; use `not is_palindrome("hello"):` for false checks help: Replace with `not is_palindrome("hello")`

Check failure on line 9 in test_palidrome.py

View workflow job for this annotation

GitHub Actions / ruff

ruff (E712)

test_palidrome.py:9:12: E712 Avoid equality comparisons to `False`; use `not is_palindrome("hello"):` for false checks help: Replace with `not is_palindrome("hello")`
Loading