METHOD_0 ( ) { int res = IDENT_0 . METHOD_0 ( IDENT_1 ) ; "<AssertPlaceHolder>" ; } METHOD_0 ( java . lang . String ) { int n = s . length ( ) ; int res = 0 ; java . util . Map < java . lang . IDENT_2 , java . lang . Integer > map = new java . util . HashMap ( ) ; for ( int i = 0 , start = 0 ; i < n ; i ++ ) { if ( map . containsKey ( s . charAt ( i ) ) ) { start = java . lang . Math . max ( map . get ( s . charAt ( i ) ) , start ) ; } res = java . lang . Math . max ( res , ( ( i - start ) + 1 ) ) ; map . put ( s . charAt ( i ) , ( i + 1 ) ) ; } return res ; }
org . junit . Assert . assertEquals ( 3 , res )