From e36caf9d7737b6fcbeab32495e0e7f54c5b24d0c Mon Sep 17 00:00:00 2001 From: Aakash Giri Date: Tue, 3 Oct 2023 20:13:17 +0530 Subject: [PATCH] fixed test cases by updating LengthofLongestSubstringWithoutRepetition.test.js Fixed test cases for LengthofLongestSubstringWithoutRepetition method --- String/test/LengthofLongestSubstringWithoutRepetition.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/String/test/LengthofLongestSubstringWithoutRepetition.test.js b/String/test/LengthofLongestSubstringWithoutRepetition.test.js index 81e475ced4..e2cb565619 100644 --- a/String/test/LengthofLongestSubstringWithoutRepetition.test.js +++ b/String/test/LengthofLongestSubstringWithoutRepetition.test.js @@ -12,7 +12,7 @@ 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', () => { @@ -20,7 +20,7 @@ describe('LengthOfLongestSubstring', () => { }) it('should be case-sensitive', () => { - expect(lengthOfLongestSubstring('AaBbCc')).toBe(3) + expect(lengthOfLongestSubstring('AaBbCc')).toBe(6) expect(lengthOfLongestSubstring('AbCdEf')).toBe(6) }) }) 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