METHOD_0 ( ) { double [ ] IDENT_0 = new double [ ] { 1 , 0 , 3 } ; double [ ] expected = new double [ ] { 1 , 2 , 3 } ; double [ ] actual = IDENT_1 . util . math . IDENT_2 . METHOD_1 ( IDENT_0 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( double [ ] ) { for ( int i = 0 ; i < ( IDENT_0 . length ) ; i ++ ) { if ( ( IDENT_0 [ i ] ) == 0 ) { int index = IDENT_1 . util . math . IDENT_2 . METHOD_2 ( IDENT_0 , i ) ; if ( index == ( - 1 ) ) { for ( int j = ( i == 0 ) ? 1 : i ; j < ( IDENT_0 . length ) ; j ++ ) { IDENT_0 [ j ] = IDENT_0 [ ( j - 1 ) ] ; } break ; } else { for ( int j = i ; j < index ; j ++ ) { if ( i == 0 ) { IDENT_0 [ j ] = IDENT_0 [ index ] ; } else { IDENT_0 [ j ] = ( IDENT_0 [ ( j - 1 ) ] ) + ( ( ( IDENT_0 [ index ] ) - ( IDENT_0 [ ( i - 1 ) ] ) ) / ( ( index - i ) + 1 ) ) ; } } i = index - 1 ; } } } return IDENT_0 ; }
org . junit . Assert . assertArrayEquals ( expected , actual , 0.0 )