We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7d22b4 commit b3a503aCopy full SHA for b3a503a
src/algorithms/string/rabin-karp/__test__/rabinKarp.test.js
@@ -37,6 +37,7 @@ describe('rabinKarp', () => {
37
it('should work with UTF symbols', () => {
38
expect(rabinKarp('a\u{ffff}', '\u{ffff}')).toBe(1);
39
expect(rabinKarp('\u0000耀\u0000', '耀\u0000')).toBe(1);
40
- // expect(rabinKarp('a\u{10000}', '\u{10000}')).toBe(1);
+ expect(rabinKarp('a\u{20000}', '\u{20000}')).toBe(1);
41
+ expect(rabinKarp('ab\u{20005}a', '\u{20005}a')).toBe(2);
42
});
43
0 commit comments