METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . IDENT_2 test = new com . IDENT_0 . IDENT_1 . METHOD_1 ( ) ; int [ ] input = new int [ ] { 1 , 2 , 3 , 4 } ; "<AssertPlaceHolder>" ; } METHOD_2 ( int [ ] ) { if ( ( IDENT_3 . length ) < 3 ) { return 0 ; } int count = 0 ; int IDENT_4 = ( IDENT_3 [ 1 ] ) - ( IDENT_3 [ 0 ] ) ; int IDENT_5 = 2 ; for ( int i = 2 ; i < ( IDENT_3 . length ) ; i ++ ) { if ( ( ( IDENT_3 [ i ] ) - ( IDENT_3 [ ( i - 1 ) ] ) ) == IDENT_4 ) { IDENT_5 ++ ; } else { count += count ( IDENT_5 ) ; IDENT_4 = ( IDENT_3 [ i ] ) - ( IDENT_3 [ ( i - 1 ) ] ) ; IDENT_5 = 2 ; } } return IDENT_5 > 2 ? count + ( count ( IDENT_5 ) ) : count ; }
org . junit . Assert . assertEquals ( test . METHOD_2 ( input ) , 3 )