mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
Ruff pandas vet (#10281)
* Python linting: Add ruff rules for Pandas-vet and Pytest-style
* updating DIRECTORY.md
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@@ -60,7 +60,8 @@ def test_rabin_karp() -> None:
|
||||
pattern = "abc1abc12"
|
||||
text1 = "alskfjaldsabc1abc1abc12k23adsfabcabc"
|
||||
text2 = "alskfjaldsk23adsfabcabc"
|
||||
assert rabin_karp(pattern, text1) and not rabin_karp(pattern, text2)
|
||||
assert rabin_karp(pattern, text1)
|
||||
assert not rabin_karp(pattern, text2)
|
||||
|
||||
# Test 2)
|
||||
pattern = "ABABX"
|
||||
|
||||
Reference in New Issue
Block a user