mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-17 06:48:09 +00:00
Added Unicode test to strings/rabin_karp.py (#1096)
* Added print function into matrix_multiplication_addition.py and removed blank space in data_structures/binary tree directory * Removed .vs/ folder per #893 * Rename matrix_multiplication_addition.py to matrix_operation.py * Unicode test on strings/rabin_karp.py per #1067
This commit is contained in:
parent
87a789af51
commit
4437439363
|
@ -73,6 +73,13 @@ def test_rabin_karp():
|
|||
pattern = "abcdabcy"
|
||||
text = "abcxabcdabxabcdabcdabcy"
|
||||
assert rabin_karp(pattern, text)
|
||||
|
||||
# Test 5)
|
||||
pattern = "Lü"
|
||||
text = "Lüsai"
|
||||
assert rabin_karp(pattern, text)
|
||||
pattern = "Lue"
|
||||
assert not rabin_karp(pattern, text)
|
||||
print("Success.")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user