Skip to content

Commit cf33573

Browse files
committed
Unicode test on strings/rabin_karp.py per TheAlgorithms#1067
1 parent abd5cfc commit cf33573

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)