Skip to content

Commit f229c44

Browse files
qckzrstokhos
authored andcommitted
Added Unicode test to strings/rabin_karp.py (TheAlgorithms#1096)
* Added print function into matrix_multiplication_addition.py and removed blank space in data_structures/binary tree directory * Removed .vs/ folder per TheAlgorithms#893 * Rename matrix_multiplication_addition.py to matrix_operation.py * Unicode test on strings/rabin_karp.py per TheAlgorithms#1067
1 parent a1c6658 commit f229c44

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: strings/rabin_karp.py

+7
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ def test_rabin_karp():
7373
pattern = "abcdabcy"
7474
text = "abcxabcdabxabcdabcdabcy"
7575
assert rabin_karp(pattern, text)
76+
77+
# Test 5)
78+
pattern = "Lü"
79+
text = "Lüsai"
80+
assert rabin_karp(pattern, text)
81+
pattern = "Lue"
82+
assert not rabin_karp(pattern, text)
7683
print("Success.")
7784

7885

0 commit comments

Comments
 (0)