METHOD_0 ( ) { "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String ) { java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; int count = 0 ; for ( int i = 0 ; i < ( s . length ( ) ) ; i ++ ) { count ++ ; if ( ( i == ( ( s . length ( ) ) - 1 ) ) || ( ( s . charAt ( i ) ) != ( s . charAt ( ( i + 1 ) ) ) ) ) { sb . append ( count ) . append ( s . charAt ( i ) ) ; count = 0 ; } } return ( sb . length ( ) ) < ( s . length ( ) ) ? sb . toString ( ) : s ; }
org . junit . Assert . assertEquals ( "a" , s . METHOD_1 ( "a" ) )