Skip to content

Commit f04c255

Browse files
committed
chore: fix failing tests
1 parent 2fe0ba4 commit f04c255

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

String/test/LengthofLongestSubstringWithoutRepetition.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ describe('LengthOfLongestSubstring', () => {
1212
expect(lengthOfLongestSubstring('bbbbb')).toBe(1)
1313
expect(lengthOfLongestSubstring('pwwkew')).toBe(3)
1414
expect(lengthOfLongestSubstring(' ')).toBe(1)
15-
expect(lengthOfLongestSubstring('abcdefghijklmnaaaaa')).toBe(13)
15+
expect(lengthOfLongestSubstring('abcdefghijklmnaaaaa')).toBe(14)
1616
})
1717

1818
it('should give zero for empty strings', () => {
1919
expect(lengthOfLongestSubstring('')).toBe(0)
2020
})
2121

2222
it('should be case-sensitive', () => {
23-
expect(lengthOfLongestSubstring('AaBbCc')).toBe(3)
23+
expect(lengthOfLongestSubstring('AaBbCc')).toBe(6)
2424
expect(lengthOfLongestSubstring('AbCdEf')).toBe(6)
2525
})
2626
})

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy