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 } ; int [ ] expected = new int [ ] { INT_0 , 12 , 8 , 6 } ; int [ ] result = test . METHOD_2 ( input ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( int [ ] ) { if ( ( IDENT_3 . length ) == 0 ) { return IDENT_3 ; } int [ ] res = new int [ IDENT_3 . length ] ; for ( int i = 0 ; i < ( IDENT_3 . length ) ; i ++ ) { res [ i ] = ( i == 0 ) ? IDENT_3 [ i ] : ( res [ ( i - 1 ) ] ) * ( IDENT_3 [ i ] ) ; } for ( int i = ( IDENT_3 . length ) - 2 ; i >= 0 ; i OP_0 ) { IDENT_3 [ i ] = ( IDENT_3 [ ( i + 1 ) ] ) * ( IDENT_3 [ i ] ) ; } for ( int i = ( IDENT_3 . length ) - 1 ; i > 0 ; i OP_0 ) { res [ i ] = ( i == ( ( IDENT_3 . length ) - 1 ) ) ? res [ ( i - 1 ) ] : ( res [ ( i - 1 ) ] ) * ( IDENT_3 [ ( i + 1 ) ] ) ; } res [ 0 ] = IDENT_3 [ 1 ] ; return res ; }
org . junit . Assert . assertArrayEquals ( expected , result )