Skip to content

Test running overhaul, switch to Prettier & reformat everything #1407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Oct 3, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ describe('LengthOfLongestSubstring', () => {
expect(lengthOfLongestSubstring('bbbbb')).toBe(1)
expect(lengthOfLongestSubstring('pwwkew')).toBe(3)
expect(lengthOfLongestSubstring(' ')).toBe(1)
expect(lengthOfLongestSubstring('abcdefghijklmnaaaaa')).toBe(13)
expect(lengthOfLongestSubstring('abcdefghijklmnaaaaa')).toBe(14)
})

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

it('should be case-sensitive', () => {
expect(lengthOfLongestSubstring('AaBbCc')).toBe(3)
expect(lengthOfLongestSubstring('AaBbCc')).toBe(6)
expect(lengthOfLongestSubstring('AbCdEf')).toBe(6)
})
})