Skip to content

Commit 4437439

Browse files
qckzrcclauss
authored andcommitted
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
1 parent 87a789a commit 4437439

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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)